package com.itheima.demo03;

public class MainClass {
    public static void main(String[] args) {
        Student student1 = new Student();
        student1.setName("张三");
        student1.setAge(23);
        System.out.println(student1);

        Student student2 = new Student("张三", 23);
        System.out.println(student1 == student2);
        System.out.println(student1.equals(student2));
    }
}
